<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" id="viewport" content="width=device-width, initial-scale=1,maximllm-scale=1,user-scalable=no" >
<title>跳转提示</title>
<style type="text/css">
html{font-size:625%;}
*{ padding: 0; margin: 0;}
body{ background:-moz-linear-gradient(top, #089dfb, rgba(241, 254, 255, 0.5));
	  background:-webkit-linear-gradient(top, #089dfb, rgba(241, 254, 255, 0.5));
	  background:-o-linear-gradient(top, #089dfb, rgba(241, 254, 255, 0.5));
	  background:linear-gradient(top, #089dfb, rgba(241, 254, 255, 0.5));
	  background-repeat: no-repeat;
      font-family: '微软雅黑','Helvetica','宋体'; color: #000; font-size: 16px;  
  }
  body{  
  	width:100%;height:100%;
  	filter:alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=#089dfb,endcolorstr=#f1feff,gradientType=1);
    -ms-filter:alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=#089dfb,endcolorstr=#f1feff,gradientType=1);
     background-repeat: no-repeat;
  }
  /*center div {
    margin-bottom: 150px;
}*/
  .success{font-size:80px;}
.system-message{ padding: 24px 48px; }
.system-message h1{ padding:0;font-size: 80px; font-weight: normal; line-height: 70px; margin-bottom: 12px;text-shadow:2px 2px 2px #333;color:#000;padding:50px 0 20px 0;-webkit-text-stroke:2px #fff; }
.system-message .jump{ padding-top: 10px;margin-bottom:20px}
.system-message .jump a{ color: #333;}
.system-message .success,.system-message .error{ line-height: 1.8em; font-size: 80px }
.system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display:none}
#success{
    width:380px;
    height:330px;
    margin:0;
	background:url(../../../../Public/imgzip/success.png) no-repeat 0 0;
	background-size:100% 100%;
	overflow:hidden;
}
#success canvas{
		background-color:rgba("#123","#234","#678",0);
}
#btn-stop,#href{
    display: inline-block;
    margin-right: 10px;
    font-size: 16px;
    line-height: 18px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 0 none;
    background-color: green;
    padding: 10px 20px;
    color: #fff;
    font-weight: bold;
    border-color: transparent;
    text-decoration:none;
    margin-top:30px;
    transition:all 0.1s ease;
}
#btn-stop{
	background-color:red;
}
#btn-stop:hover,#href:hover{
  box-shadow:2px 2px 3px #001;
}
@media screen and (max-width:414px){
	center div {
   		 margin-bottom: 0;
	}
	#success {
    width: 350px;}
	.system-message h1{ font-size: 35px; font-weight: normal; line-height: 60px; margin-bottom: 12px;text-shadow:2px 2px 2px #333;color:red;padding:50px 0 20px 0; }
	.system-message .success,.system-message .error{ line-height: 1.8em; font-size: 36px }
}
@media screen and (width:412px){
	#success {
    width: 350px;height:300px;margin-bottom:50px;}
	.system-message .success, .system-message .error {
         line-height: 1em;
         font-size: 40px;
    }
}
@media screen and (width:360px){
	body{height:640px;}
	#success { width: 250px;height:260px;margin:30px 0;}
	.system-message .success, .system-message .error {
         line-height: 1em;
         font-size: 30px;
    }
    center div {
      margin-bottom: 0; 
     }
}
@media screen and (width:320px){
	body{height:566px;}
	#success { width: 250px;height:300px;}
	.system-message .success, .system-message .error {
         line-height: 1em;
         font-size: 30px;
    }
    center div {
    margin-bottom: 0; 
      }
}
@media screen and (width:375px){
	body{height:600px;}
	.system-message .success, .system-message .error {
    line-height: 2em;
    font-size: 38px;
    }
	#success {
      width: 300px;
      height: 300px;
    }
}
@media screen and (width:768px){
	body{height:1024px;}
	.system-message .success, .system-message .error {
	    line-height: 3em;
	    font-size: 65px;
     }
     #success {
    width: 400px;
    height: 300px;
    margin-bottom:50px;
    }
	.system-message .jump {
		font-size:30px;
       padding-top: 10px;
       margin-bottom: 20px;
       margin-left: 180px;
    }
	.relat .imgzip {
       top: 50px;
       left: -20px;
      }
      #btn-stop, #href {font-size: 32px;
    line-height: 45px;}
}
@media screen and (width:1024px){
	body{height:1366px;}
	#success {
    	width: 530px;
    	height: 500px;
    	margin: 60px auto;
    	background: url(../../../../Public/imgzip/success.png) no-repeat 0 0;
    	background-size: 100% 100%;
	}
	#href a{display:block;}
	#href{
     font-size: 46px;
     line-height: 50px;
     border-radius: 10px;
     padding: 30px 40px;
     color: #fff;
     margin-top: 30px;
     transition: all 0.1s ease;
    }
    #href:hover{
    	-webkit-box-shadow:1px 1px 3px #ccc;
    }
}
@media screen and (min-width:1920px){

	.system-message .success, .system-message .error {
    line-height: 1.8em;
    font-size: 50px;
     }
	center div{
		margin-bottom:0;
	}
}

</style>
</head>
<body onLoad="draw('canvas');">
<div class="system-message">
<center><h1 class="success" style='font-size:55px'>恭喜您，<?php echo($message); ?>！</h1></center>
<center><p class="error" style='margin-top:-30px'></p>
<p class="detail"></p>
<div id="success">
	<!-- <canvas id="canvas" width=800 height=600></canvas> -->
</div>
<p class="jump">
<b id="wait"><?php echo($waitSecond); ?></b> 秒后页面将自动跳转
</p>
</center>
<center><div>
    <a id="href" id="btn-now" href="<?php echo($jumpUrl); ?>" style='margin-top:-20px'>立即跳转</a> 
</div></center>
</div>
<script type="text/javascript">
(function(){
 var wait = document.getElementById('wait'),href = document.getElementById('href').href;
 var interval = setInterval(function(){
     	var time = --wait.innerHTML;
     	if(time <= 0) {
     		location.href = href;
     		clearInterval(interval);
     	};
     }, 3000);
  window.stop = function (){
         console.log(111);
            clearInterval(interval);
 }
 })();
</script>
</body>
</html>
<script>
	window.onload=function(){
		var mycanvas=document.getElementById('canvas');
		if(!canvas||!canvas.getContext){return false};
		var cobj=canvas.getContext('2d');
		cobj.beginPath();
		var area=cobj.createLinearGradient(0,0,0,300);
		area.addColorStop(0,'#089dfb');
		area.addColorStop(0.9,'#a4ddfe');
		area.addColorStop(1,'#bce6fe');
		cobj.fillStyle=area;
		cobj.rect(0,0,300,300);
		cobj.fill();
		cobj.closePath();
		draw('canvas');
	}
	function draw(id) {
    var canvas = document.getElementById(id);
    if (canvas == null) return false;
    var context = canvas.getContext('2d');
    context.fillRect(0, 0, 500, 400);
    var n = 0;
	    for (var i = 0; i < 10; i++) {
	      context.beginPath();
	      context.arc(i * 25, i * 25, i * 10, 0, Math.PI * 2, true);
	      context.closePath();
	      context.fillStyle = 'rgba(255, 0, 0, 0.25)';
	      context.fill();
	   }
 	}
</script>